﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace XKPlatform
{
    public interface IBaseService<T>
    {


        List<T> GetList(int pageIndex, int pageSize, string whereSql, Dictionary<string, object> paramMap, string orderByField, int orderByType, out int totalCount);

        List<T> GetList(string whereSql, Dictionary<string, object> paramMap);

        List<T> GetList();

        T GetModel(string whereSql, Dictionary<string, object> paramMap);

        T GetModel(string key, string value);

        int Insert(T item);

        int Update(T item, string whereSql);

        int Delete(string whereSql, Dictionary<string, object> paramMap);

        
    }
}
